package com.cmict.data.system.convert.conf;

import com.cmict.data.framework.common.pojo.PageResult;
import com.cmict.data.system.api.conf.dto.ConfSystemDTO;
import com.cmict.data.system.controller.admin.conf.vo.*;
import com.cmict.data.system.controller.admin.conf.vo.*;
import com.cmict.data.system.dal.dataobject.conf.ConfDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 系统通用配置信息 Convert
 *
 * @author liutao
 * @date 2022/4/22
 */
@Mapper
public interface ConfConvert {

    ConfConvert INSTANCE = Mappers.getMapper(ConfConvert.class);

    ConfDO convert(ConfCreateReqVO bean);

    ConfDO convert(ConfUpdateReqVO bean);

    ConfSystemDTO convertDTD(ConfSystem bean);

    ConfRespVO convert(ConfDO bean);

    List<ConfRespVO> convertList(List<ConfDO> list);

    PageResult<ConfRespVO> convertPage(PageResult<ConfDO> page);

    List<ConfExcelVO> convertList02(List<ConfDO> list);

}
